
#include <windows.h>

const int HEIGHT = 500;
const int WIDTH = 800;

class BasicWindow
{

public:
	BasicWindow(/*HINSTANCE hInst, int nCmd*/)/* : hInstance(hInst), nCmdShow(nCmd) */{Clear();}
	virtual ~BasicWindow() {}

	void Clear() {hwnd = NULL;}
	HWND Create(HINSTANCE hInstance, int nCmdShow);
	void Destroy();

	void Show();

	void SetDimensions();
	int GetWidth() {return width;}
	int GetHeight() {return height;}

	friend LRESULT CALLBACK WndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam);

protected:

	HWND RegisterWindow(HINSTANCE hInstance);
	HWND hwnd;
	int nCmdShow;
	int height, width;
};
